package edu.ilstu.mind.ise.ccp.mindmodule;

import edu.ilstu.mind.ise.ccp.logger.Logger;
import edu.ilstu.mind.ise.ccp.message.MasterMessageFactory;
import edu.ilstu.mind.ise.ccp.message.Message;
import edu.ilstu.mind.ise.ccp.message.MessageSender;

/**
 * Dummy MindModule that always passes messages through
 * 
 * @author Eric Thill
 *
 */

public class DummyMindModule implements MindModule {

	private Logger logger;
	
	@Override
	public void setMessageFactory(MasterMessageFactory messageFactory) {
		// do nothing
	}
	
	@Override
	public void setMessageSender(MessageSender sender) {
		// do nothing
	}

	@Override
	public void setLogger(Logger logger) {
		this.logger = logger;
	}

	@Override
	public void init() {
		logger.info(getClass().getSimpleName() + " Initialized");
	}

	@Override
	public boolean onMessage(Message message) {
		return true;
	}

}
